﻿using System.Web.Optimization;

namespace HopNguyenCms.App_Start
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;   //enable CDN support

            bundles.Add(new ScriptBundle("~/bundles/js")
                .Include("~/frontend/js/jquery-1.8.0.min.js")
                .Include("~/frontend/js/custom.js"));

            bundles.Add(new StyleBundle("~/bundles/css")
                .Include("~/frontend/css/style.css")
                .Include("~/frontend/css/layout.css")
                .Include("~/frontend/css/css")
                .Include("~/frontend/css/custom.css"));

                BundleTable.EnableOptimizations = true;
        }
    }
}